package com.suyuan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单
 */
public class OrderInfo implements Serializable{
    /**
     * 订单编号
     */
    private Integer gid;

    /**
     * 客户编号
     */
    private Integer customid;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date ordertime;

    /**
     * 创建人id
     */
    private Integer employeeid;

    /**
     * 折扣
     */
    private Float discount;

    /**
     * 实际付款金额
     */
    private Float realpaymoney;

    /**
     * 订单状态
     */
    private String orderstate;

    /**
     * 订单结束时间
     */
    private Date finishedtime;

    /**
     * 附加说明
     */
    private String recmemo;

    /**
     * 订单地址
     */
    private String orderaddr;

    /**
     * 订单联系方式
     */
    private String orderphone;

    /**
     * 接收人姓名
     */
    private String receivername;

    /**
     * 订单原金额
     */
    private Double normalmoney;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getCustomid() {
        return customid;
    }

    public void setCustomid(Integer customid) {
        this.customid = customid;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Integer getEmployeeid() {
        return employeeid;
    }

    public void setEmployeeid(Integer employeeid) {
        this.employeeid = employeeid;
    }

    public Float getDiscount() {
        return discount;
    }

    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    public Float getRealpaymoney() {
        return realpaymoney;
    }

    public void setRealpaymoney(Float realpaymoney) {
        this.realpaymoney = realpaymoney;
    }

    public String getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(String orderstate) {
        this.orderstate = orderstate == null ? null : orderstate.trim();
    }

    public Date getFinishedtime() {
        return finishedtime;
    }

    public void setFinishedtime(Date finishedtime) {
        this.finishedtime = finishedtime;
    }

    public String getRecmemo() {
        return recmemo;
    }

    public void setRecmemo(String recmemo) {
        this.recmemo = recmemo == null ? null : recmemo.trim();
    }

    public String getOrderaddr() {
        return orderaddr;
    }

    public void setOrderaddr(String orderaddr) {
        this.orderaddr = orderaddr == null ? null : orderaddr.trim();
    }

    public String getOrderphone() {
        return orderphone;
    }

    public void setOrderphone(String orderphone) {
        this.orderphone = orderphone == null ? null : orderphone.trim();
    }

    public String getReceivername() {
        return receivername;
    }

    public void setReceivername(String receivername) {
        this.receivername = receivername == null ? null : receivername.trim();
    }

    public Double getNormalmoney() {
        return normalmoney;
    }

    public void setNormalmoney(Double normalmoney) {
        this.normalmoney = normalmoney;
    }

    public OrderInfo(){}

    @Override
    public String toString() {
        return "OrderInfo{" +
                "gid=" + gid +
                ", customid=" + customid +
                ", ordertime=" + ordertime +
                ", employeeid=" + employeeid +
                ", discount=" + discount +
                ", realpaymoney=" + realpaymoney +
                ", orderstate='" + orderstate + '\'' +
                ", finishedtime=" + finishedtime +
                ", recmemo='" + recmemo + '\'' +
                ", orderaddr='" + orderaddr + '\'' +
                ", orderphone='" + orderphone + '\'' +
                ", receivername='" + receivername + '\'' +
                ", normalmoney=" + normalmoney +
                '}';
    }
}